﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RemoteDesktops.Classes
{
  public class DesktopLauncher
  {
    /// <summary>
    /// 
    /// </summary>
    /// <param name="serverName"></param>
    /// <param name="launchParms"></param>
    public static void LaunchDesktop(string serverName, string launchParms)
    {
      System.Diagnostics.Process.Start("mstsc", String.Format("/v:{0} {1}", serverName, launchParms));
    }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="serverName"></param>
    public static void LaunchDesktop(string serverName)
    {
      LaunchDesktop(serverName, String.Empty);
    }

    /// <summary>
    /// 
    /// </summary>
    public static void LaunchDesktop()
    {
      LaunchDesktop(String.Empty, String.Empty);
    }
  }
}
